package com.qdc.datacenters.service.impl;

import com.qdc.datacenters.domain.query.statistics.StatisticsQuery;
import com.qdc.datacenters.domain.query.statistics.TimeoutStatisticsQuery;
import com.qdc.datacenters.domain.vo.statistics.*;
import com.qdc.datacenters.service.ChatMsgStatisticsService;
import com.qdc.datacenters.service.IChatMsgRuleMsgService;
import com.qdc.datacenters.service.ISensitiveWordsResultService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author danmo
 * @date 2024-03-20 10:23
 **/
@Slf4j
@Service
public class ChatMsgStatisticsServiceImpl implements ChatMsgStatisticsService {

    @Autowired
    private ISensitiveWordsResultService iSensitiveWordsResultService;

    @Autowired
    private IChatMsgRuleMsgService iChatMsgRuleMsgService;

    @Override
    public List<SensitiveUserRankVo> sensitiveSingleUserRank(StatisticsQuery query) {
        return iSensitiveWordsResultService.sensitiveSingleUserRank(query);
    }

    @Override
    public List<SensitiveCustomerRankVo> sensitiveSingleCustomerRank(StatisticsQuery query) {
        return iSensitiveWordsResultService.sensitiveSingleCustomerRank(query);
    }

    @Override
    public List<SensitiveUserRankVo> sensitiveGroupUserRank(StatisticsQuery query) {
        return iSensitiveWordsResultService.sensitiveGroupUserRank(query);
    }

    @Override
    public List<SensitiveCustomerRankVo> sensitiveGroupCustomerRank(StatisticsQuery query) {
        return iSensitiveWordsResultService.sensitiveGroupCustomerRank(query);
    }

    @Override
    public List<SensitiveStatisticsListVo> sensitiveStatistic(StatisticsQuery query) {
        return iSensitiveWordsResultService.sensitiveStatistic(query);
    }

    @Override
    public List<SingleTimeoutRankVo> singleTimeoutRank(StatisticsQuery query)
    {
        return iChatMsgRuleMsgService.singleTimeoutRank(query);
    }

    @Override
    public List<GroupTimeoutRankVo> groupTimeoutRank(StatisticsQuery query) {
        return iChatMsgRuleMsgService.groupTimeoutRank(query);
    }

    @Override
    public List<TimeoutStatisticsListVo> timeoutStatistic(TimeoutStatisticsQuery query) {
        return iChatMsgRuleMsgService.timeoutStatistic(query);
    }
}
